#ifndef __CE_ASSET_READER_ASSETREADERMATERIAL_H__
#define __CE_ASSET_READER_ASSETREADERMATERIAL_H__

#include <math/color.h>
#include <asset/assetreader.h>

class cffNode;
class ceAssetReaderMaterial : public iAssetReader
{
	CE_OBJECT
private:

	cffNode* FindNode (cffNode* parent, const char* name);
	ceColor4f ReadColor (cffNode* colorNode, const ceColor4f &initial);

public:
	ceAssetReaderMaterial ();

	bool CanRead(ceEngine *engine, ceAssetTypeID type, const ceAssetLocator &locator);

  ceRef<ceAsset> Read(ceEngine *engine, ceAssetTypeID type, const ceAssetLocator &locator);
};

#endif /* ! __CE_ASSET_READER_ASSETREADERMATERIAL_H__ */

